class Textblock < ActiveRecord::Base
  validates_presence_of :name, :content
  validates_uniqueness_of :name

  def self.getText name
    t = Textblock.find_by_name name || ''
#    t.content
  end

end
